/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Logica;

/**
 *
 * @author Fernando
 */
public class DatosConexion {
    private String user;
    private String pass;
    private String ip;
    private String port;
    private String db;
    
    public DatosConexion(String a, String b, String c, String d, String e){
        this.user = a;
        this.pass = b;
        this.ip=c;
        this.port = d;
        this.db=e;
    }

    /**
     * @return the user
     */
    public String getUser() {
        return user;
    }

    /**
     * @param user the user to set
     */
    public void setUser(String user) {
        this.user = user;
    }

    /**
     * @return the pass
     */
    public String getPass() {
        return pass;
    }

    /**
     * @param pass the pass to set
     */
    public void setPass(String pass) {
        this.pass = pass;
    }

    /**
     * @return the ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * @param ip the ip to set
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * @return the port
     */
    public String getPort() {
        return port;
    }

    /**
     * @param port the port to set
     */
    public void setPort(String port) {
        this.port = port;
    }

    /**
     * @return the db
     */
    public String getDb() {
        return db;
    }

    /**
     * @param db the db to set
     */
    public void setDb(String db) {
        this.db = db;
    }
    
    @Override
    public String toString(){
        StringBuilder s = new StringBuilder();
        s.append(String.format(this.user+"\n"));
        s.append(String.format(this.pass+"\n"));
        s.append(String.format(this.ip+"\n"));
        s.append(String.format(this.port+"\n"));
        s.append(String.format(this.db+"\n"));
        return s.toString();
    }
}
